<template>
  <span class="permission">
    <slot v-if="show"></slot>
  </span>
</template>

<script>

  export default {
    name: 'MkPermission',
    props: {
      perms: {
        required: true,
        type: Array,
        default: []
      },
      operate:{
          type:String,
          default:'and'
      }
    },
    data () {
      return {
        show: false
      }
    },
    mounted(){
//      this.show = this.$utils.hasPermission(this.perms, this.operate);
    }
  }
</script>
